package com.mars.nacos.infrastructure.remote;

import com.mars.nacos.infrastructure.remote.dto.response.UserInfoResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import static com.mars.nacos.infrastructure.remote.constant.RemoteConstant.USER_APP_API;

/**
 * @author : kyrie
 * @date : 2022/8/24 09:56
 * #desc    : some description
 */
@FeignClient(value = USER_APP_API)
public interface UserAppApiRemoteService {

    @GetMapping("/user/v1/username")
    UserInfoResDTO getUserName();
}
